<?php

namespace Application\Model\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Developer
 *
 * @ORM\Table(name="developer", indexes={@ORM\Index(name="fk_Developers_User1_idx", columns={"Users_Id"}), @ORM\Index(name="IDX_65FB8B9ADC6A420", columns={"Projects_Id"})})
 * @ORM\Entity
 */
class Developer
{
    /**
     * @var integer
     *
     * @ORM\Column(name="Users_Id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="NONE")
     */
    private $usersId;

    /**
     * @var \Application\Model\Entity\Project
     *
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="NONE")
     * @ORM\OneToOne(targetEntity="Application\Model\Entity\Project")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="Projects_Id", referencedColumnName="Id")
     * })
     */
    private $projects;



    /**
     * Set usersId
     *
     * @param integer $usersId
     * @return Developer
     */
    public function setUsersId($usersId)
    {
        $this->usersId = $usersId;

        return $this;
    }

    /**
     * Get usersId
     *
     * @return integer 
     */
    public function getUsersId()
    {
        return $this->usersId;
    }

    /**
     * Set projects
     *
     * @param \Application\Model\Entity\Project $projects
     * @return Developer
     */
    public function setProjects(\Application\Model\Entity\Project $projects)
    {
        $this->projects = $projects;

        return $this;
    }

    /**
     * Get projects
     *
     * @return \Application\Model\Entity\Project 
     */
    public function getProjects()
    {
        return $this->projects;
    }
}
